qui(function(require, exports, module) {

    Vodad.Config = $.extend({}, Ancestor.Config, {

        VODAD_TYPE: ['视频', '图像'],
        VODAD_CONTENT_TYPE: ['未设置', '压屏条', '压屏角标', '插入型转场', '贴片型转场', '大头贴', '原创贴'],
        UPLOAD_URL: auth.dev() ? "http://10.110.22.78/common_upload" : "http://paopaoupload.iqiyi.com/common_upload",
        UPLOAD_VIDEO_PARAMS: {
            url: "http://fft.qiyi.domain/api/file/",
            access_key: auth.dev() ? "a1339f483f48661" : "4bfc3767d7be0353",
            secret_key: auth.dev() ? "2fd04664202502e9056e77d8504ce43d" : "b257b67be6317733",
            ttl: 86400
        },

        EffectUploadCommonParams: {
            //auth_token: Com.cookie.get('P00001'),
            auth_token: "5aX4BXG5ZM5c8DEwwm1UefCprtQaAwzuwaA0tNAUZFNp6WJDANvSZGq2bd0WZnm1m2m1KA9f",
            qichuan_bizid: "ppc_daobotai",
            file_type: "jpg",
            business_type: "image",
            file_size: "1"
        },

        PageBean: null,

			TABLE_COLMODEL_CONFIG: {
			    'id': {
                    name: 'id',
                    title: false,
                    index: 'id',
                    align:'center',
                    sortable: false,
                    width: 100
                },
				'name': {
					name: 'name',
					title: false,
					index: 'name',
					align:'center',
					sortable: false,
					width: 150
				},
				'type': {
					name: 'type',
					title: false,
					index: 'type',
					align:'center',
					sortable: false,
					width: 150,
					formatter: function(v, o, r) {
                        return Vodad.Util.formatter.type(v,r);
                    }
				},
				'fileSize': {
					name: 'fileSize',
					title: false,
					index: 'fileSize',
					align:'center',
					sortable: false,
					width: 150,
					formatter: function(v, o, r) {
					    return Vodad.Util.formatter.fileSize(v,r);
					}
				},
				'duration': {
				    name: 'duration',
                    title: false,
                    index: 'duration',
                    align:'center',
                    sortable: false,
                    width: 100
				},
				'pic': {
				    name: 'pic',
                    title: false,
                    index: 'pic',
                    align:'center',
                    sortable: false,
                    width: 150,
                    formatter: function(v, o, r) {
                        return Vodad.Util.formatter.img(v,r);
                    }
				},
				'remark': {
				    name: 'remark',
                    title: false,
                    index: 'remark',
                    align:'center',
                    sortable: false,
                    width: 200
				},
				'opUser': {
                    name: 'opUser',
                    title: false,
                    index: 'opUser',
                    align:'center',
                    width: 150,
                    align: 'center',
                },
                'opTime': {
                    name: 'opTime',
                    title: false,
                    index: 'opTime',
                    align:'center',
                    width: 180,
                    align: 'center',
                    formatter: function(v, o, r) {
                        return Vodad.Util.formatter.time(v,r);
                    }
                },
				'operate': {
					name: 'operate',
					title: false,
					index: 'operate',
					width: 140,
					align:'center',
					sortable: false,
					formatter: function(v, o, r) {
						return Vodad.Util.formatter.operate(v,r);
					}
				},
				'contentType': {
                    name: 'contentType',
                    title: false,
                    index: 'contentType',
                    width: 100,
                    align:'center',
                    sortable: false,
                    formatter: function(v, o, r) {
                        return Vodad.Util.formatter.contentType(v,r);
                    }
                },
                'uuid': {
			        name: 'uuid',
                    title: false,
                    index: 'uuid',
                    width: 100,
                    align:'center',
                    sortable: false,
                    hidden: true,
                }
			},

			TABLE: {
			    url: "/api/vod/ad/getList",
			    rowNum: 10,
                pager: "#VodadListPager",
			    multiselect: false,
			    prmNames: {
                    page: "pageNo",
                    rows: "pageSize"
                },

			    loadBeforeSend:function(xhr, settings){
                    var auth = Ancestor.Util.getAuth("/vod/ad/getList");
                    xhr.setRequestHeader('Sign',auth.sign);
                    xhr.setRequestHeader("Time",auth.clientTime);
                    xhr.setRequestHeader("From",auth.from);
                    return true;
                },

			    //datatype: "local",
			    loadtext: '加载中...',
                loadui: "block",
                mtype: "post",

				colNames: ["ID", "素材名称", "素材属性", "内容类型", "文件大小(字节|KB|MB)", "时长", "缩略图", "备注", "上传人", "上传时间", "操作", "uuid"],
				colModel: ['id', 'name', 'type', 'contentType', 'fileSize', 'duration', 'pic', 'remark', 'opUser', 'opTime', 'operate', 'uuid']
			}
		});
});